package com.lw.question02;

import java.util.Scanner;

/**
 * @author LW
 * @2020/9/14 9:42
 */
public class 判断小写3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String X = scanner.next();
        char[] x = X.toCharArray();
        int sum=0;
        for (int i = 0; i < x.length; i++) {
            if (Character.isLowerCase(x[i])==true){
                sum+=1;
                System.out.println(sum);
            }
        }
        System.out.println("小写字母有"+sum+"个");
    }
}
